int diagonalSum(int** mat, int matSize, int* matColSize){
    int sum=0;
    for (int i = 0,j=matSize - 1 ; i < matSize&&j>=0; i++,j--) 
    {
        sum+=mat[i][i]+mat[j][i];
    }
    if(matSize%2!=0)
      sum-=mat[matSize/2][matSize /2];
        return sum;

}